package com.softline.documentsmall.dao;

import com.softline.documentsmall.entity.ZsIndexDetail;
import com.softline.documentsmall.entity.ZsInnerCountryHistogramVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhongweicheng
 * @DATE 2021-03-16
 */
public interface ZsIndexDetailMapper {

    List<ZsIndexDetail> findByParams(@Param("type")String type,@Param("year")String year,@Param("areaType")String areaType);

    String findTotalIndexByYear(@Param("year") String year,@Param("areaType") String areaType,@Param("type") String type,@Param("name") String name);

    String findOtherIndexByType(@Param("year") String year,@Param("name") String name,@Param("type") String type);

    //国内城市详情页
    List<ZsIndexDetail> innerCountryDetail(@Param("type") String type,@Param("languageType") String languageType,@Param("name") String name,@Param("year") String year,@Param("areaType") String areaType);

    String getAreaTypeCityDetail(@Param("type") String type,@Param("languageType") String languageType,@Param("name") String name,@Param("year") String year);
    //国内城市底部进度条
    List<ZsInnerCountryHistogramVo> BigHistogram(@Param("type")String type,@Param("year")String year,@Param("areaType")String areaType);

    List<ZsInnerCountryHistogramVo> smallHistogram(@Param("type")String type,@Param("year")String year,@Param("areaType")String areaType,@Param("labelName")String labelName);
    //大数据发展指数省域城市选择列表
    List<String> cityList(@Param("year") String year,@Param("areaType") String areaType,@Param("type") String type,@Param("languageType") String languageType);


    String findNameByType(@Param("type")String type,@Param("languageType") String languageType);

    //根据城市英文名称获取城市的经纬度信息
    Map getCityLocationByName(@Param("name")String name);

    //大数据发展指数每个城市单独选择获取的数据,name默认中文
    List<ZsIndexDetail>  bigDataDevIndexGetIndexDetail(@Param("areaType") String areaType,@Param("nameCn") String name,@Param("year") String year,@Param("type")String type,@Param("languageType") String languageType);
}
